package com.example.springboottest.service;

import com.example.springboottest.model.Test;

import com.example.springboottest.model.TestRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestService {
    @Autowired
    private TestRepository TestRepository;


    public String Test(String word) {
        String a  = TestRepository.findByName("2").getName();
        return "您输入的值是：" + a;
    }
}
